<table width="100%" cellspacing="15">
  <tr>
   <td width="80%" valign="top">
      <div class="gray_box" style="">
        <table width="100%" height="200" id="tbl_form">
        <iframe name="frame" id="frame"  frameborder="0"  style="width:0px;height:0px" ></iframe>
        <form name="frmmain" action="extract_complete.php?task=save"  method="POST" target="frame" onsubmit="return hideform()" >
          <tr>
            <td valign="top" colspan="2"><h4>Extract All Pages From URL</h4></td>
          </tr>
          <?php if ($page_data[errors] != '') { ?>
            <tr>
              <td valign="top" colspan="2" style="color: #ff0000;"><?php echo implode("<br>",$page_data[errors]);?></td>
            </tr>
          <?php } // end if errors ?>
          <tr>
            <td valign="top">Base Url:</td>
            <td valign="top">
            <input type="text" name="page_url1" id="page_url1" value="<?php echo ($page_data[url]!='') ? $page_data[url] : 'http://';?>"><br>
             <span style="color: #ff0000">Please enter URL to extract all pages.  </span>
           </tr>
           <tr>
             <td valign="top">Template Name:</td>
             <td valign="top">
            <?php  echo menu::menu_from_assoc_array('template_id',$page_data[templatelist]);?>
            <span style="color: #ff0000">*</span></td>
           </tr>
           <tr>
             <td valign="top">Use Relative Path?:</td>
             <td valign="top">
           <input type="checkbox" name="page_is_relative" value="1" <?php if($page_data[page_is_relative]==1) echo"checked"; ?>>

             </td>
            </tr>
            <tr>
             <td valign="top">Import Images:</td>
             <td valign="top">
           <input type="checkbox" name="is_import_images" value="1" <?php if($page_data[is_import_images]==1) echo"checked"; ?>>

             </td>
            </tr>
            <tr>
             <td valign="top">Delete Existing Joomla Module Definition:</td>
             <td valign="top">
           <input type="checkbox" name="is_delete_modules" value="1" <?php if($page_data[is_delete_modules]==1) echo"checked"; ?>>

            </td>
           </tr>
           <tr>
            <td valign="top">Use HTML title tag as Joomla Article Title?:</td>
            <td valign="top">
           <input type="checkbox" name="is_html_title" value="1" <?php if($page_data[is_html_title]==1) echo"checked"; ?>>&nbsp; <span style="color: #ff0000">This is only used if the HTML titles from the old site are all unique.</span>

           </td>
           </tr>
           <tr>
            <td valign="top">Import CSS?:</td>
            <td valign="top">
           <input type="checkbox" name="is_import_css" value="1" <?php if($page_data[is_import_css]==1) echo"checked"; ?>>
           </td>
          </tr>
          <tr>

		  <tr>
            <td valign="top" colspan="2" align="center">
              <input type="submit"  name="submit" value="Submit">
              <input type="button" onclick="window.location='<?php echo $_SERVER['PHP_SELF'];?>'" value="Cancel">
            </td>
          </tr>
          </form>

        </table>
        <table id="tbl_processing" width="100%" style="display:none">
          <tr>
            <td align="center" style="padding:15px">
                <img src="<?php echo  APP_TEMPLATE_URL?>images/ajax-loader.gif">
                <div id="resultdiv" style="padding:15px"></div>
            </td>
          </tr>
        </table>
      </div>
    </td>
  </tr>
</table>
<script>
function hideform(){
    document.getElementById('tbl_form').style.display= 'none';
    document.getElementById('tbl_processing').style.display= '';
}
</script>